<m-project-plan project-plan-name="{{info.projectPlanInfo.projectPlanName}}" select-tab="env">
    <div class="panel panel-default">
        <div class="col-sm-12">
            <div class="panel-heading" ng-if="info.envList.datas.length < 3">
                <div class="btn btn-primary btn-xs" ng-click="addApply()"><i class="fa fa-plus"></i> 添加环境</div>
            </div>
            <winit-table is-user-search="false" thdata="info.envThdata" page="info.page" data="info.envList"
                         delete-blur="applyDelete(info)" find-td="goToRelease(info)"></winit-table>
        </div>
    </div>
</m-project-plan>
<script type="text/ng-template" id="addApply.html">
    <div class="wrapper-md">
        <m-form invalid="info.invalid">
            <m-form-lable title="">
                <m-form-line label="开始日期:">
                    <m-datepicker select-dt="info.startExceptTime"></m-datepicker>
                </m-form-line>
                <m-form-line label="项目到期:">
                    <m-datepicker select-dt="info.endExceptTime"></m-datepicker>
                </m-form-line>
                <m-form-line label="区域要求/描述:">
                    <winit-textarea textarea-width="380px" textarea-height="120px"
                                    textdata="info.desc"></winit-textarea>
                </m-form-line>
                <m-form-line label="申请人:">
                    <span>{{userName}}</span>
                </m-form-line>
                <m-form-line label="项目:">
                    <span>{{info.plan_name}}</span>
                </m-form-line>
                <m-form-line label="环境:">
                    <span ng-repeat="type in info.showTypes">
                        <input style="margin-left: 5px;" type="checkbox" ng-model="type.check">{{type.type}}
                    </span>
                </m-form-line>
            </m-form-lable>
        </m-form>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="save()">保存</button>
        <button class="btn btn-primary" ng-click="cancel()">关闭</button>
    </div>
</script>